package javaAPI.String.String2;

public class String3 {
    public static void main(String[] args) {
        String result=reverser("abc");
        System.out.println(result);
    }
    public static String reverser(String str){
        String result="";
        for (int i = str.length(); i > 0; i--) {
            char c=str.charAt(i);
            result =result+c;
        }
        return result;
    }
}
